cmake_minimum_required(VERSION 3.10)

set(CMAKE_COLOR_MAKEFILE OFF)
set(CMAKE_CXX_FLAGS "-std=c++11")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# set(CMAKE_CXX_FLAGS "-std=c++11 -fsanitize=address")

# 指定工程名称
project(memory_scheduler)

# 指定源文件路径，将所有源文件汇总到DIR_SRCS中
file(GLOB_RECURSE DIR_SRCS
    src/*.cpp
)
# aux_source_directory(src DIR_SRCS)

# 指定头文件路径
include_directories(
    .
    include
)

# 添加目标执行文件
add_executable(${PROJECT_NAME} ${DIR_SRCS})
target_compile_options(${PROJECT_NAME} PRIVATE -O3 -W -Wall)
